package com.twu.biblioteca;

public abstract class Item {


    private final String name;
    private final int year;
    private final ItemType itemType;

    protected Item(String name, int year, ItemType type) {
        this.name = name;
        this.year = year;
        this.itemType = type;
    }

    public String getName() {
        return name;
    }

    public int getYear() {
        return year;
    }

    public ItemType getItemType() {
        return itemType;
    }

    @Override
    public abstract String toString();
}